package com.dingxin.ship_together_api.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.dingxin.ship_together_api.common.utils.PageUtils;
import com.dingxin.ship_together_api.entity.RouteSpu;
import com.dingxin.ship_together_api.entity.vo.PageQueryVo;

/**
* Author: ctj
* Date: 2022-09-30
* Time: 17:15
*/

public interface RouteSpuService extends IService<RouteSpu>{

    /**
     * Spu分页查询
     * @param pageQueryVo
     * @return
     */
    PageUtils selectSpuPage(PageQueryVo pageQueryVo);

    /**
     * Sku分页查询根据SpuId
     * @param spuId
     * @return
     */
    PageUtils selectSkuPageBySpuId(PageQueryVo pageQueryVo);

    /**
     * 检查当前是否超过下单截止时间
     * @param routeId
     * @return
     */
    boolean checkBeyondDeadline(Long skuId);
}
